-- GENERATED SPELL FOR [Darrowshire Betrayer] --


function spell0_10947(pUnit, Event) --@Wither Strike,Heal--
pUnit:FullCastSpellOnTarget(5337,pUnit)
pUnit:RegisterEvent('Sorts_10947', 8346, 1)
end

function Sorts_10947(pUnit, Event)
local choix_sorts_10947 = math.random(0, 0)
if choix_sorts_10947 == 0 then
pUnit:RegisterEvent('spell0_10947', 1, 1)
end
end

function mob10947_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10947', math.random(1500, 3000), 1)
end

function mob10947_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10947_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10947_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10947, 1, 'mob10947_Action')
RegisterUnitEvent(10947, 2, 'mob10947_Leave')
RegisterUnitEvent(10947, 3, 'mob10947_Kill')
RegisterUnitEvent(10947, 4, 'mob10947_Die')
